package com.fqgj.sentry.policy.enums;

/**
 * Created by zwh @yuntu-inc.com
 *
 * @description
 * @create 2017/7/31 0031 上午 9:40
 */
public enum ColumnEventTypeEnum {

    all_event(0, "全部事件"),
    not_all_event(1, "非全部事件");

    private Integer type;
    private String desc;

    ColumnEventTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static String getDesc(Integer type) {
        for (ColumnEventTypeEnum columnEventTypeEnum: ColumnEventTypeEnum.values()) {
            if (columnEventTypeEnum.getType().equals(type)) {
                return columnEventTypeEnum.getDesc();
            }
        }
        return null;
    }

    public Integer getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }
}
